// WBS表格数据
// 定义SelectOption接口（与CLSelect组件中的定义保持一致）
import type { SoftwareNode } from "@/components/CLTable/interface.ts";
import type { DynamicField } from "@/data/wbsFields.ts";

export interface SelectOption {
  code: string | number;
  name: string;
  tag?: string;
}

export interface ProjectNode {
  id: string;
  no: string;
  name: string;
  priority: string[];
  status: string;
  startDate: string;
  endDate: string;
  assignee: string;
  parentRecord?: string;
  date: string;
  delay?: string;
  remark?: string;
  checkbox?: {
    text: string;
    checked: boolean;
    disable: boolean;
  };
  children?: ProjectNode[];
  // 添加索引签名以支持动态属性访问
  [key: string]: any;
}

export const wbsSampleData: ProjectNode[] = [
  {
    id: "1",
    no: "1",
    name: "修复用户反馈 TOP 3 问题",
    type: "task",
    priority: ["P0", "P1", "P2", "P3", "P4"],
    status: "已完成",
    startDate: "2025-07-21",
    endDate: "2025-08-19",
    assignee: "胡小蝶",
    parentRecord: "",
    date: "2025-07-21",
    progress: 80,
    checkbox: { text: "是", checked: true, disable: false },
    remark: "暂无信息",
    children: [
      {
        id: "1-1",
        no: "1-1",
        name: "移动端登录页面优化",
        type: "task",
        priority: ["P0"],
        status: "未开始",
        startDate: "2025-07-20",
        endDate: "2025-08-28",
        assignee: "陈小美",
        parentRecord: "修复用户反馈 TOP 3 问题",
        date: "2025-07-20",
        progress: 0,
      },
    ],
  },
  {
    id: "2",
    no: "2",
    name: "模拟版本",
    type: "task",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-07-18",
    endDate: "2025-08-22",
    assignee: "陈小美",
    parentRecord: "",
    date: "2025-07-18",
    progress: 10,
    checkbox: { text: "是", checked: false, disable: false },
  },
  {
    id: "3",
    no: "3",
    name: "网页端交互改版",
    type: "task",
    priority: ["P0"],
    status: "未开始",
    startDate: "2025-07-30",
    endDate: "2025-08-27",
    assignee: "胡小蝶",
    parentRecord: "",
    date: "2025-07-30",
    progress: 10,
    checkbox: { text: "否", checked: false, disable: true },
  },
  {
    id: "4",
    no: "4",
    name: "需求 1",
    priority: ["P1"],
    status: "进行中",
    startDate: "2024-11-28",
    endDate: "2025-12-22",
    assignee: "林小智",
    parentRecord: "",
    date: "2024-11-28",
    progress: 10,
  },
  {
    id: "5",
    no: "5",
    name: "需求 2",
    type: "task",
    priority: ["P2"],
    status: "未开始",
    startDate: "2024-11-25",
    endDate: "2025-12-24",
    assignee: "林小智",
    parentRecord: "",
    date: "2024-11-25",
    progress: 80,
  },
  {
    id: "6",
    no: "6",
    name: "需求 3",
    type: "task",
    priority: ["P3"],
    status: "进行中",
    startDate: "2024-12-21",
    endDate: "2025-01-05",
    assignee: "王小哈",
    parentRecord: "",
    date: "2024-12-21",
    progress: 80,
  },
];

// 优先级颜色映射
export const priorityColors: Record<string, string> = {
  P0: "#ff4d4f",
  P1: "#fa8c16",
  P2: "#1890ff",
  P3: "#52c41a",
  P4: "pink",
  P5: "orange",
};

// 状态颜色映射
export const statusColors: Record<string, string> = {
  已完成: "#52c41a",
  进行中: "#1890ff",
  未开始: "#8c8c8c",
};

// 开发者头像映射
export const assigneeAvatars: Record<string, string> = {
  胡小蝶: "🔵",
  陈小美: "🟢",
  林小智: "🟠",
  王小哈: "🟣",
  张三: "🔴",
  李四: "🟡",
  王五: "🟤",
  赵六: "🔷",
  钱七: "🔸",
  孙八: "🟪",
  周九: "🟨",
  吴十: "🟧",
};

export const statusOptions: SelectOption[] = [
  { value: "已完成", label: "已完成", tag: "已完成" },
  { value: "进行中", label: "进行中", tag: "进行中" },
  { value: "未开始", label: "未开始", tag: "未开始" },
];

export const priorityOptions: SelectOption[] = [
  { value: "P0", label: "P0", tag: "P0" },
  { value: "P1", label: "P1", tag: "P1" },
  { value: "P2", label: "P2", tag: "P2" },
  { value: "P3", label: "P3", tag: "P3" },
  { value: "P4", label: "P4", tag: "P4" },
  { value: "P5", label: "P5", tag: "P5" },
];

export const taskTypeOptions: SelectOption[] = [
  { value: "task", label: "任务", tag: "任务" },
  { value: "bug", label: "Bug", tag: "Bug" },
  { value: "feature", label: "功能", tag: "功能" },
  { value: "design", label: "设计", tag: "设计" },
  { value: "document", label: "文档", tag: "文档" },
  { value: "test", label: "测试", tag: "测试" },
  { value: "other", label: "其他", tag: "其他" },
];

export const projectSampleData: ProjectNode[] = [
  {
    id: "1",
    no: "1",
    name: "双子座68.80KW-机体项目",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-13",
    endDate: "2025-09-14",
    assignee: "Rowan",
    parentRecord: "",
    date: "2025-09-13",
    progress: 100,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真1",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "Rowan",
    secondExecutor: "Rowan",
    receiveDate: "2024-12-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: false,
    children: [
      {
        id: "1-1",
        no: "1.1",
        name: "双子座-机体项目",
        parent: 0,
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-14",
        endDate: "2025-09-18",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-14",
        progress: 70,
        applicationTitle: "申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-10",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
        remainingDays: 199,
        children: [
          {
            id: "1-1-1",
            no: "1.1.1",
            parent: 0,
            name: "双子项目",
            priority: ["P0"],
            status: "进行中",
            startDate: "2025-09-19",
            endDate: "2025-09-21",
            assignee: "Rowan",
            parentRecord: "双子座68.80KW-机体项目",
            date: "2025-09-19",
            progress: 60,
            applicationTitle: "来自仿真申请单的标题",
            taskNumber: "S25-XXXX",
            projectNumber: "01-2-02-02-03-25-108",
            simulationSubject: "力学仿真",
            projectManager: "孙永平",
            projectDescription: "地震仿真项目，用于测试机体结构强度",
            geometricModelVersion: "V1.0",
            simulationExecutor: "Rowan",
            resultJudgment: "-",
            riskLevel: "高",
            approachingSolutions: 2,
            optimizationOpinions: "蓝底充克",
            proposer: "Rowan",
            demandDepartment: "蓝底充克",
            firstExecutor: "Rowan",
            secondExecutor: "Rowan",
            receiveDate: "2025-09-11",
            projectDuration: 30,
            taskStatus: "ON GOING",
            trend: "http://debug7.ai",
            hasOptimalResult: true,
            isEnded: true,
          },
        ],
      },
      {
        id: "1-2",
        no: "1.2",
        parent: 0,
        name: "双子座68.80KW-机体项目",
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-12",
        endDate: "2025-09-15",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-12",
        progress: 60,
        applicationTitle: "来自仿真申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-11",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
      },
      {
        id: "1-3",
        no: "1.3",
        parent: 0,
        name: "双子座68.80KW",
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-16",
        endDate: "2025-09-18",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-16",
        progress: 60,
        applicationTitle: "来自仿真申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-11",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
      },
    ],
  },
  {
    id: "2",
    no: "2",
    parent: 0,
    name: "68.80KW-机体项目",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-16",
    endDate: "2025-09-20",
    assignee: "Calvin",
    parentRecord: "",
    date: "2025-09-16",
    progress: 55,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Calvin",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Calvin",
    demandDepartment: "蓝底充克",
    firstExecutor: "Calvin",
    secondExecutor: "Calvin",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
    children: [
      {
        id: "2-1",
        no: "2.1",
        name: "双子座-机体项目",
        parent: 0,
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-18",
        endDate: "2025-09-23",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-18",
        progress: 70,
        applicationTitle: "申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-10",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
        remainingDays: 199,
        children: [
          {
            id: "2-1-1",
            no: "2.1.1",
            parent: 0,
            name: "双子项目",
            priority: ["P0"],
            status: "进行中",
            startDate: "2025-09-09",
            endDate: "2025-09-13",
            assignee: "Rowan",
            parentRecord: "双子座68.80KW-机体项目",
            date: "2025-09-09",
            progress: 60,
            applicationTitle: "来自仿真申请单的标题",
            taskNumber: "S25-XXXX",
            projectNumber: "01-2-02-02-03-25-108",
            simulationSubject: "力学仿真",
            projectManager: "孙永平",
            projectDescription: "地震仿真项目，用于测试机体结构强度",
            geometricModelVersion: "V1.0",
            simulationExecutor: "Rowan",
            resultJudgment: "-",
            riskLevel: "高",
            approachingSolutions: 2,
            optimizationOpinions: "蓝底充克",
            proposer: "Rowan",
            demandDepartment: "蓝底充克",
            firstExecutor: "Rowan",
            secondExecutor: "Rowan",
            receiveDate: "2025-09-11",
            projectDuration: 30,
            taskStatus: "ON GOING",
            trend: "http://debug7.ai",
            hasOptimalResult: true,
            isEnded: true,
          },
        ],
      },
      {
        id: "2-2",
        no: "2.2",
        parent: 0,
        name: "双子座68.80KW-机体项目",
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-06",
        endDate: "2025-09-12",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-06",
        progress: 60,
        applicationTitle: "来自仿真申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-11",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
      },
      {
        id: "2-3",
        no: "2.3",
        parent: 0,
        name: "双子座68.80KW",
        priority: ["P0"],
        status: "进行中",
        startDate: "2025-09-13",
        endDate: "2025-09-16",
        assignee: "Rowan",
        parentRecord: "双子座68.80KW-机体项目",
        date: "2025-09-13",
        progress: 60,
        applicationTitle: "来自仿真申请单的标题",
        taskNumber: "S25-XXXX",
        projectNumber: "01-2-02-02-03-25-108",
        simulationSubject: "力学仿真",
        projectManager: "孙永平",
        projectDescription: "地震仿真项目，用于测试机体结构强度",
        geometricModelVersion: "V1.0",
        simulationExecutor: "Rowan",
        resultJudgment: "-",
        riskLevel: "高",
        approachingSolutions: 2,
        optimizationOpinions: "蓝底充克",
        proposer: "Rowan",
        demandDepartment: "蓝底充克",
        firstExecutor: "Rowan",
        secondExecutor: "Rowan",
        receiveDate: "2025-09-11",
        projectDuration: 30,
        taskStatus: "ON GOING",
        trend: "http://debug7.ai",
        hasOptimalResult: true,
        isEnded: true,
      },
    ],
  },
  {
    id: "3",
    no: "3",
    parent: 0,
    name: "机体项目",
    type: "milestone",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-14",
    assignee: "张三",
    parentRecord: "",
    date: "2025-09-11",
    progress: 52,
    remark: "地震仿真项目",
    applicationTitle: "申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "张三",
    secondExecutor: "张三",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
  {
    id: "4",
    no: "4",
    name: "双子座68.80KW-机体项目",
    type: "project",
    parent: 0,
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-14",
    assignee: "李四翼",
    parentRecord: "",
    date: "2025-09-11",
    progress: 48,
    remark: "地震仿真项目",
    applicationTitle: "标题1",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "李四翼",
    secondExecutor: "李四翼",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
  {
    id: "5",
    no: "5",
    parent: 0,
    name: "双子座68.80KW-机体项目",
    type: "task",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-14",
    assignee: "Rowan",
    parentRecord: "",
    date: "2025-09-11",
    progress: 45,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "Rowan",
    secondExecutor: "Rowan",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
  {
    id: "6",
    no: "6",
    parent: 0,
    name: "双子座68.80KW-机体项目",
    type: "task",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-14",
    assignee: "Rowan",
    parentRecord: "",
    date: "2025-09-11",
    progress: 42,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "Rowan",
    secondExecutor: "Rowan",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
  {
    id: "7",
    no: "7",
    parent: 0,
    name: "双子座68.80KW-机体项目",
    type: "task",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-24",
    assignee: "Rowan",
    parentRecord: "",
    date: "2025-09-11",
    progress: 40,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "Rowan",
    secondExecutor: "Rowan",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
  {
    id: "8",
    no: "8",
    name: "双子座68.80KW-机体项目",
    type: "task",
    priority: ["P0"],
    status: "进行中",
    startDate: "2025-09-11",
    endDate: "2025-09-14",
    assignee: "Rowan",
    parentRecord: "",
    date: "2025-09-11",
    progress: 40,
    remark: "地震仿真项目",
    applicationTitle: "来自仿真申请单的标题",
    taskNumber: "S25-XXXX",
    projectNumber: "01-2-02-02-03-25-108",
    simulationSubject: "力学仿真",
    projectManager: "孙永平",
    projectDescription: "地震仿真项目，用于测试机体结构强度",
    geometricModelVersion: "V1.0",
    simulationExecutor: "Rowan",
    resultJudgment: "-",
    riskLevel: "高",
    approachingSolutions: 2,
    optimizationOpinions: "蓝底充克",
    proposer: "Rowan",
    demandDepartment: "蓝底充克",
    firstExecutor: "Rowan",
    secondExecutor: "Rowan",
    receiveDate: "2025-09-11",
    projectDuration: 30,
    taskStatus: "ON GOING",
    trend: "http://debug7.ai",
    hasOptimalResult: true,
    isEnded: true,
  },
];
export const tmpLinks = [
  {
    id: 1,
    direction: "finish_to_start",
    linkedFromTaskKey: "1-1",
    linkedToTaskKey: "1-2",
  },
  {
    id: 2,
    direction: "finish_to_finish",
    linkedFromTaskKey: "1-1",
    linkedToTaskKey: "1-3",
  },
  {
    id: 3,
    direction: "start_to_finish",
    linkedFromTaskKey: "1-2",
    linkedToTaskKey: "1-1",
  },
  {
    id: 4,
    direction: "start_to_start",
    linkedFromTaskKey: "1-1",
    linkedToTaskKey: "1-3",
  },
  {
    id: 5,
    direction: "start_to_start",
    linkedFromTaskKey: "2-1",
    linkedToTaskKey: "1-3",
  },
  {
    id: 6,
    direction: "finish_to_finish",
    linkedFromTaskKey: "2-2",
    linkedToTaskKey: "2-3",
  },
  {
    id: 7,
    direction: "finish_to_start",
    linkedFromTaskKey: "2-2",
    linkedToTaskKey: "2-3",
  },
];
export const mockSoftwareFields: SoftwareNode[] = [
  {
    id: 1,
    name: "ANSYS Workbench",
    version: "2023 R1",
    executionType: "本地执行",
    creator: "张三",
    creatorTime: "2023-10-15",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 2,
    name: "SolidWorks",
    version: "2024",
    executionType: "云端执行",
    creator: "李四",
    creatorTime: "2023-11-20",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 3,
    name: "MATLAB",
    version: "R2023b",
    executionType: "本地执行",
    creator: "王五",
    creatorTime: "2023-09-05",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 4,
    name: "AutoCAD",
    version: "2024",
    executionType: "混合执行",
    creator: "赵六",
    creatorTime: "2023-12-01",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 5,
    name: "AutoCAD",
    version: "2024",
    executionType: "混合执行",
    creator: "赵六",
    creatorTime: "2023-12-01",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 6,
    name: "AutoCAD",
    version: "2024",
    executionType: "混合执行",
    creator: "赵六",
    creatorTime: "2023-12-01",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 7,
    name: "AutoCAD",
    version: "2024",
    executionType: "混合执行",
    creator: "赵六",
    creatorTime: "2023-12-01",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
  {
    id: 8,
    name: "AutoCAD",
    version: "2024",
    executionType: "混合执行",
    creator: "赵六",
    creatorTime: "2023-12-01",
    image: new URL("@/assets/bladed 1.svg", import.meta.url).href,
    description: "描述",
  },
];

export const optionsData = [
  {
    leftLabel: "正常11111",
    key: "1",
    operation: "1111",
    rightLabel: "正常111",
  },
  {
    leftLabel: "正常2",
    key: "2",
    operation: "2",
    rightLabel: "正常2",
  },
  {
    leftLabel: "正常3",
    key: "3",
    operation: "3",
    rightLabel: "正常3",
  },
  {
    leftLabel: "正常4",
    key: "4",
    operation: "4",
    rightLabel: "正常4",
  },
  {
    leftLabel: "正常5",
    key: "5",
    operation: "5",
    rightLabel: "正常5",
  },
  {
    leftLabel: "正常6",
    key: "6",
    operation: "6",
    rightLabel: "正常6",
  },
  {
    leftLabel: "正常7",
    key: "7",
    operation: "7",
    rightLabel: "正常7",
  },
];
export const dataReportFields: DynamicField[] = [
  {
    id: 1,
    name: "名称",
    field: "fileName",
    type: "imagetext",
    typex: "imagetext",
    invisible: true,
  },
  {
    id: 2,
    name: "归属任务版本",
    field: "type",
    type: "text",
    typex: "text",
    invisible: true,
    rules: [{ required: true, message: "请输入名称", trigger: "blur" }],
  },
  {
    id: 3,
    name: "文件类型",
    field: "source",
    type: "text",
    typex: "text",
    invisible: true,
  },
  {
    id: 4,
    name: "数据接入",
    field: "group",
    type: "text",
    typex: "text",
    invisible: true,
  },
  {
    id: 5,
    name: "创建人",
    field: "creatorName",
    type: "user",
    typex: "user",
    invisible: true,
  },
  {
    id: 6,
    name: "创建时间",
    field: "createTime",
    type: "date",
    typex: "date",
    invisible: true,
  },
  {
    id: 7,
    name: "修改人",
    field: "modifier",
    type: "user",
    typex: "user",
    invisible: true,
  },
  {
    id: 8,
    name: "修改时间",
    field: "modifyTime",
    type: "date",
    typex: "date",
    invisible: true,
  },
];
